Optimal. Leaf size=125 \[ -\frac {\left (8 a^2+12 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}^2(x)}}{\sqrt {a+b}}\right )}{8 (a+b)^{3/2}}-\frac {1}{4} \coth ^4(x) \sqrt {a+b \text {sech}^2(x)}-\frac {(4 a+3 b) \coth ^2(x) \sqrt {a+b \text {sech}^2(x)}}{8 (a+b)}+\sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}^2(x)}}{\sqrt {a}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 125, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.412, Rules used = {4139, 446, 99, 151, 156, 63, 208} \[ -\frac {\left (8 a^2+12 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}^2(x)}}{\sqrt {a+b}}\right )}{8 (a+b)^{3/2}}-\frac {1}{4} \coth ^4(x) \sqrt {a+b \text {sech}^2(x)}-\frac {(4 a+3 b) \coth ^2(x) \sqrt {a+b \text {sech}^2(x)}}{8 (a+b)}+\sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}^2(x)}}{\sqrt {a}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 99
Rule 151
Rule 156
Rule 208
Rule 446
Rule 4139
Rubi steps
\begin {align*} \int \coth ^5(x) \sqrt {a+b \text {sech}^2(x)} \, dx &=\operatorname {Subst}\left (\int \frac {\sqrt {a+b x^2}}{x \left (-1+x^2\right )^3} \, dx,x,\text {sech}(x)\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {\sqrt {a+b x}}{(-1+x)^3 x} \, dx,x,\text {sech}^2(x)\right )\\ &=-\frac {1}{4} \coth ^4(x) \sqrt {a+b \text {sech}^2(x)}+\frac {1}{4} \operatorname {Subst}\left (\int \frac {-2 a-\frac {3 b x}{2}}{(-1+x)^2 x \sqrt {a+b x}} \, dx,x,\text {sech}^2(x)\right )\\ &=-\frac {(4 a+3 b) \coth ^2(x) \sqrt {a+b \text {sech}^2(x)}}{8 (a+b)}-\frac {1}{4} \coth ^4(x) \sqrt {a+b \text {sech}^2(x)}-\frac {\operatorname {Subst}\left (\int \frac {-2 a (a+b)-\frac {1}{4} b (4 a+3 b) x}{(-1+x) x \sqrt {a+b x}} \, dx,x,\text {sech}^2(x)\right )}{4 (a+b)}\\ &=-\frac {(4 a+3 b) \coth ^2(x) \sqrt {a+b \text {sech}^2(x)}}{8 (a+b)}-\frac {1}{4} \coth ^4(x) \sqrt {a+b \text {sech}^2(x)}-\frac {1}{2} a \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\text {sech}^2(x)\right )+\frac {\left (8 a^2+12 a b+3 b^2\right ) \operatorname {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a+b x}} \, dx,x,\text {sech}^2(x)\right )}{16 (a+b)}\\ &=-\frac {(4 a+3 b) \coth ^2(x) \sqrt {a+b \text {sech}^2(x)}}{8 (a+b)}-\frac {1}{4} \coth ^4(x) \sqrt {a+b \text {sech}^2(x)}-\frac {a \operatorname {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b \text {sech}^2(x)}\right )}{b}+\frac {\left (8 a^2+12 a b+3 b^2\right ) \operatorname {Subst}\left (\int \frac {1}{-1-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b \text {sech}^2(x)}\right )}{8 b (a+b)}\\ &=\sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}^2(x)}}{\sqrt {a}}\right )-\frac {\left (8 a^2+12 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}^2(x)}}{\sqrt {a+b}}\right )}{8 (a+b)^{3/2}}-\frac {(4 a+3 b) \coth ^2(x) \sqrt {a+b \text {sech}^2(x)}}{8 (a+b)}-\frac {1}{4} \coth ^4(x) \sqrt {a+b \text {sech}^2(x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.02, size = 191, normalized size = 1.53 \[ -\frac {\cosh (x) \sqrt {a+b \text {sech}^2(x)} \left (\sqrt {2} \left (8 a^2+12 a b+3 b^2\right ) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a+b} \cosh (x)}{\sqrt {a \cosh (2 x)+a+2 b}}\right )+\sqrt {a+b} \left (\frac {1}{2} \coth (x) \text {csch}^3(x) \sqrt {a \cosh (2 x)+a+2 b} ((6 a+5 b) \cosh (2 x)-2 a-b)-8 \sqrt {2} \sqrt {a} (a+b) \log \left (\sqrt {a \cosh (2 x)+a+2 b}+\sqrt {2} \sqrt {a} \cosh (x)\right )\right )\right )}{8 (a+b)^{3/2} \sqrt {a \cosh (2 x)+a+2 b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.42, size = 0, normalized size = 0.00 \[ \int \left (\coth ^{5}\relax (x )\right ) \sqrt {a +b \mathrm {sech}\relax (x )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \operatorname {sech}\relax (x)^{2} + a} \coth \relax (x)^{5}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\mathrm {coth}\relax (x)}^5\,\sqrt {a+\frac {b}{{\mathrm {cosh}\relax (x)}^2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + b \operatorname {sech}^{2}{\relax (x )}} \coth ^{5}{\relax (x )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________